package benchmarks.tpch.mongo.dto;

import org.bson.types.ObjectId;
import org.mongodb.morphia.annotations.*;

import java.util.Date;

@Entity("deals")
public class LineItemDto {
    @Id
    private ObjectId _id;
    private int linenumber;
    private double quantity;
    private double extendedprice;
    private double discount;
    private double tax;
    private String returnflag;
    private String linestatus;
    private Date shipdate;
    private Date commitdate;
    private Date receiptdate;
    private String shipinstruct;
    private String shipmode;
    private String comment;
    @Embedded
    private OrderDto order;
    @Embedded
    private PartSuppDto partsupp;

    public LineItemDto() {
    }

    public ObjectId get_id() {
        return _id;
    }

    public void set_id(ObjectId _id) {
        this._id = _id;
    }

    public int getLinenumber() {
        return linenumber;
    }

    public void setLinenumber(int linenumber) {
        this.linenumber = linenumber;
    }

    public double getQuantity() {
        return quantity;
    }

    public void setQuantity(double quantity) {
        this.quantity = quantity;
    }

    public double getExtendedprice() {
        return extendedprice;
    }

    public void setExtendedprice(double extendedprice) {
        this.extendedprice = extendedprice;
    }

    public double getDiscount() {
        return discount;
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }

    public double getTax() {
        return tax;
    }

    public void setTax(double tax) {
        this.tax = tax;
    }

    public String getReturnflag() {
        return returnflag;
    }

    public void setReturnflag(String returnflag) {
        this.returnflag = returnflag;
    }

    public String getLinestatus() {
        return linestatus;
    }

    public void setLinestatus(String linestatus) {
        this.linestatus = linestatus;
    }

    public Date getShipdate() {
        return shipdate;
    }

    public void setShipdate(Date shipdate) {
        this.shipdate = shipdate;
    }

    public Date getCommitdate() {
        return commitdate;
    }

    public void setCommitdate(Date commitdate) {
        this.commitdate = commitdate;
    }

    public Date getReceiptdate() {
        return receiptdate;
    }

    public void setReceiptdate(Date receiptdate) {
        this.receiptdate = receiptdate;
    }

    public String getShipinstruct() {
        return shipinstruct;
    }

    public void setShipinstruct(String shipinstruct) {
        this.shipinstruct = shipinstruct;
    }

    public String getShipmode() {
        return shipmode;
    }

    public void setShipmode(String shipmode) {
        this.shipmode = shipmode;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public OrderDto getOrder() {
        return order;
    }

    public void setOrder(OrderDto order) {
        this.order = order;
    }

    public PartSuppDto getPartsupp() {
        return partsupp;
    }

    public void setPartsupp(PartSuppDto partsupp) {
        this.partsupp = partsupp;
    }
}
